package com.lemon.rule.express.match;

public class NodeTypeManagerTestImpl implements INodeTypeManager {

    public INodeType findNodeType(String name) {
        return new TestNodeTypeImpl(name);
    }

}

class TestNodeTypeImpl implements INodeType {
    String name;

    public TestNodeTypeImpl(String aName) {
        this.name = aName;
    }

    public String getName() {
        return this.name;
    }

    public INodeTypeManager getManager() {
        throw new RuntimeException("û��ʵ�ֵķ���");
    }

    @Override
    public QLPatternNode getPatternNode() {
        throw new RuntimeException("û��ʵ�ֵķ���");
    }
}